package my.graduation.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import my.graduation.entity.Doctor;

/**
 * @Author: RavenLyn
 * @Date: 2024-12-17
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DoctorRegVO {
    private Integer id; //doctorId

    private Integer regScheId;

    private String name;

    private Integer title;

    private String researchField;

    private String avatar;

    private Integer shift;

    public DoctorRegVO(Doctor doctor, Integer shift, Integer regScheId) {
        this.id = doctor.getId();
        this.regScheId = regScheId;
        this.name= doctor.getName();
        this.title= doctor.getTitle();
        this.researchField= doctor.getResearchField();
        this.avatar= doctor.getAvatar();
        this.shift = shift;
    }
}
